package com.wl.thread.demo01;

public class TestThread01 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("start开启。。。"+i);
        }
    }

    public static void main(String[] args) {
        //创建一个线程对象
        TestThread01 testThread01 = new TestThread01();
        //调用start开启线程
        testThread01.start();

        for (int i = 0; i < 1000; i++) {
            System.out.println("主线程。。。"+i);
        }
    }
}
